]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Initialize brightnessManager before panel
authorSebastian Keller <skeller@gnome.org>
Fri, 11 Sep 2026 11:05:50 +0000 (13:05 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 13 Sep 2026 17:39:10 +0000 (19:39 +0200)
commit8f3230eff304125b8955179071855ba01bb22351
treed4578f2441d11767d232a680f2bcb5893a982606
parentd838bf816a863b786760307a487d3250b5104514
main: Initialize brightnessManager before panel

The brightness indicator initialized via
`QuckSettings::_setupIndicators()` as part of the panel initialization
depends on `Main.brightnessManager`, which was only getting initialized
after the panel in `_initializeUI()`.

In practice this usually was not a problem, because the wait for
NetworkManager and Bluetooth in `_setupIndicators()` was enough of a
delay for `Main.brightnessManager` to have been initialized by the time
the brightness indicator is initialized. But on systems where
gnome-shell was built without these, this could have resulted in quick
settings not initializing properly.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/work_items/9378
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4401>
(cherry picked from commit 1e6e40e2a7e48ff1d319ba110de756a14c1dd550)
js/ui/main.js